Skip to content

Update dataset editor file browser modal to use spx theme css#292

Merged
klpoland merged 11 commits into
masterfrom
feature-kpoland-enhanced-dataset-editor-file-browser
Jun 25, 2026
Merged

Update dataset editor file browser modal to use spx theme css#292
klpoland merged 11 commits into
masterfrom
feature-kpoland-enhanced-dataset-editor-file-browser

Conversation

@klpoland

@klpoland klpoland commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Note

Medium Risk
Touches core dataset create/edit file selection UI and pending-change behavior; no API contract changes, but regressions could affect which files are submitted or how removals display before save.

Overview
Replaces the dataset file picker modal table (#file-tree-table) with a SpectrumX-themed accessible tree (#file-tree-root inside .file-browser-modal), including click-to-select rows, visually hidden checkboxes, keyboard activation, and modal-specific styling.

Selection behavior is consolidated in AssetSearchHandler: modal picks live in selectedFiles until confirm, with folder selection mode (toggle all selectable files in a directory), clear modal selections, select-all, and syncCommittedFileSelectionUI for the summary field and create-mode selected-files table. The tree is built with DOM APIs and textContent for names instead of HTML string rows.

DatasetCreationHandler and DatasetEditingHandler drop duplicate modal/checkbox logic and delegate to the search handler; edit mode gains pending file removal styling synced on tree rebuild, normalized file IDs, removeAllFileSelections, and an Enter key guard on the dataset form. Tests and a frontend rule note are updated accordingly.

Reviewed by Cursor Bugbot for commit 3becbf6. Bugbot is set up for automated code reviews on this repo. Configure here.

@klpoland klpoland self-assigned this Jun 4, 2026
@klpoland klpoland requested a review from lucaspar June 4, 2026 13:07
@klpoland klpoland added feature New feature or request gateway Gateway component javascript Pull requests that update non-trivial javascript code labels Jun 4, 2026
lucaspar

This comment was marked as resolved.

Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js Outdated
Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js Outdated
Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js
Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js Outdated
Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js Outdated
@klpoland klpoland force-pushed the feature-kpoland-enhanced-dataset-editor-file-browser branch from a430e87 to 8e6ebdb Compare June 11, 2026 13:37
@creinkin

Copy link
Copy Markdown
Collaborator

bugbot run

Comment thread gateway/sds_gateway/static/js/dataset/DatasetCreationHandler.js Outdated
Comment thread gateway/sds_gateway/static/js/dataset/DatasetEditingHandler.js
Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js
Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js Outdated
Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js
Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js Outdated
@klpoland klpoland force-pushed the feature-kpoland-enhanced-dataset-editor-file-browser branch from 147463f to f0926b8 Compare June 25, 2026 13:55
Comment thread gateway/sds_gateway/static/js/dataset/DatasetCreationHandler.js Outdated
Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js
Comment thread gateway/sds_gateway/static/js/dataset/DatasetEditingHandler.js
Comment thread gateway/sds_gateway/static/js/dataset/DatasetEditingHandler.js
Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js
Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3becbf6. Configure here.

Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js
Comment thread gateway/sds_gateway/static/js/search/AssetSearchHandler.js
@klpoland klpoland merged commit 7792e18 into master Jun 25, 2026
2 of 3 checks passed
@klpoland klpoland deleted the feature-kpoland-enhanced-dataset-editor-file-browser branch June 25, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request gateway Gateway component javascript Pull requests that update non-trivial javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants